﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Configuration.aspx.cs" Inherits="Website.Configuration"  MasterPageFile="~/frag.Master" %>
<%@ MasterType VirtualPath="~/frag.Master" %>

<asp:content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
    
    <div title="Please ">
        Please choose your stats:&nbsp;
    

                    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpnlStarts" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
             <asp:Table ID="Table1" runat="server" CellPadding="10" GridLines="None" HorizontalAlign="Center">
                 <asp:TableRow>
                    <asp:TableCell>
                        Health:
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:DropDownList ID="DropHealth" runat="server"  OnSelectedIndexChanged="dropHealth_SelectedIndexChanged" AutoPostBack="True">
                        </asp:DropDownList>
                    </asp:TableCell>
                 </asp:TableRow>
                 <asp:TableRow>
                    <asp:TableCell>
                        Speed:
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:DropDownList ID="DropSpeed" runat="server" Enabled="false" AutoPostBack="True" OnSelectedIndexChanged="dropSpeed_SelectedIndexChanged">
                        </asp:DropDownList>
                    </asp:TableCell>
                 </asp:TableRow>
                 <asp:TableRow>
                    <asp:TableCell>
                        Accuracy:
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:DropDownList ID="DropAccuracy" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </asp:TableCell>
                 </asp:TableRow>
             </asp:Table>
         </ContentTemplate>
         </asp:UpdatePanel>

        
        
        <br />
        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Label ID="lblFull1" runat="server" 
                    Text="Room is not full! Do you want to wait for " Visible="False"></asp:Label>
                <asp:Label ID="lblPlayers" runat="server" Text="0" Visible="False"></asp:Label>
                &nbsp;<asp:Label ID="lblFull2" runat="server" Text="more player(s)?" 
                    Visible="False"></asp:Label>
                &nbsp;
                <asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" 
                    ontick="Timer1_Tick">
                </asp:Timer>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
         <asp:Table ID="Table2" runat="server" CellPadding="10" GridLines="None" HorizontalAlign="Center">
            <asp:TableRow>
                <asp:TableCell>
                     <asp:UpdatePanel ID="UpnlStart" runat="server" UpdateMode="Conditional">
                        <ContentTemplate> 
                    <asp:Button ID="btnStart" runat="server" Text="Start game" 
                        onclick="btnStart_Click" Width="96px" Enabled="False" />
                     </ContentTemplate>
                    </asp:UpdatePanel>
                </asp:TableCell>
                <asp:TableCell>
                      <asp:UpdatePanel ID="UpnlWait" runat="server" UpdateMode="Conditional">
                        <ContentTemplate> 
                            <asp:Button ID="btnWait" runat="server" Text="Wait" Visible="False" 
                             Width="96px" onclick="btnWait_Click" />
                     </ContentTemplate>
                    </asp:UpdatePanel>
                </asp:TableCell>
            </asp:TableRow>
         </asp:Table>
       <asp:UpdatePanel ID="UpnlMes" runat="server" UpdateMode="Conditional"> 
        <ContentTemplate> 
            <asp:Label ID="lblMesssage" runat="server" ForeColor="Red" Visible="False"></asp:Label>
        </ContentTemplate>
        </asp:UpdatePanel>
        
        
        
        <br />
        
        

    
    </div>
    </asp:Panel>
</asp:content>